<title>支付记录</title>
<style>
    #order_div .layui-table-cell {
        height: auto;
        overflow: hidden;
        text-overflow: inherit;
        white-space: normal;
    }
</style>

<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a lay-href="">主页</a>
        <a><cite>支付</cite></a>
        <a><cite>订单详情</cite></a>
    </div>
</div>

<div class="layui-col-md12" style="padding: 10px;">
    <div class="layui-card">
        <div class="layui-card-body" style="padding-top: 25px;">
            <form class="layui-form layui-form-pane" lay-filter="ordersearh">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">搜索</label>
                        <div class="layui-input-inline">
                            <select name="type" lay-filter="type">
                                <option value="0" selected="">支付订单号</option>
                                <option value="1">用户UID</option>
                                <option value="2">支付金额</option>
                                <option value="3">用户IP</option>
                            </select>
                        </div>
                        <div class="layui-input-inline">
                            <input type="text" name="data" autocomplete="off" placeholder="请输入搜索内容" class="layui-input"
                                value="">
                        </div>
                        <div class="layui-input-inline">
                            <select name="paytype" lay-filter="type">
                                <option value="0" selected="">所有支付方式</option>
                                <option value="1">QQ钱包</option>
                                <option value="2">微信支付</option>
                                <option value="3">支付宝</option>
                            </select>
                        </div>
                        <div class="layui-input-inline" style="padding-top: 5px;">
                            <button type="submit" lay-submit="" lay-filter="search"
                                class="layui-btn layui-btn-default layui-btn-radius layui-btn-sm">搜索</button>
                            <button type="reset"
                                class="layui-btn layui-btn-primary layui-btn-radius layui-btn-sm">重置</button>
                        </div>
                    </div>
                </div>
            </form>
            <p>未支付订单将在48小时后删除！！！</p>
        </div>
    </div>
</div>
<div class="layui-row layui-col-space15" style="padding: 10px;">
    <script type="text/html" template lay-url="ajax_data.php" lay-type="post" lay-data="{act:'money'}">
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">
                    今日收款
                    <span class="layui-badge layui-bg-blue layuiadmin-badge">元</span>
                </div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font">￥&nbsp;{{d.today.money}}</p>
                    <p>
                        今日成功订单
                        <span class="layuiadmin-span-color">+&nbsp;{{d.today.order}}<i
                                class="layui-icon">&#xe66c;</i></span>
                    </p>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">
                    昨日收款
                    <span class="layui-badge layui-bg-cyan layuiadmin-badge">元</span>
                </div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font">￥&nbsp;{{d.ysday.money}}</p>
                    <p>
                        昨日成功订单
                        <span class="layuiadmin-span-color">+&nbsp;{{d.ysday.order}}<i
                                class="layui-icon">&#xe6c6;</i></span>
                    </p>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">
                    总收款
                    <span class="layui-badge layui-bg-green layuiadmin-badge">元</span>
                </div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font">￥&nbsp;{{d.all.money}}</p>
                    <p>&nbsp;<span class="layuiadmin-span-color"><i class="layui-icon" lay-tips="好多好多钱钱，分我一点可好？"
                                lay-offset="5">&#xe735;</i></span></p>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">
                    订单
                    <span class="layui-badge layui-bg-orange layuiadmin-badge">总</span>
                </div>
                <div class="layui-card-body layuiadmin-card-list">

                    <p class="layuiadmin-big-font">+&nbsp;{{d.all.order}}</p>
                    <p>
                        成功订单
                        <span class="layuiadmin-span-color">+&nbsp;{{d.all.statusorder}} <i
                                class="layui-icon">&#xe650;</i></span>
                    </p>
                </div>
            </div>
        </div>
    </script>
</div>

<div class="layui-col-md12" style="padding: 10px;">
    <div class="layui-card">
        <div class="layui-card-body" id="order_div">
            <div style="padding-bottom: 10px;">
                <button type="button" class="layui-btn layui-btn-danger" onclick="delorder();"><i
                        class="layui-icon layui-icon-delete"></i></button>
            </div>
            <table id="order_table" lay-filter="order_table">
            </table>
        </div>
    </div>
</div>
<script type="text/html" id="orderbar">
    {{#  if(d.status == 1){ }}
    <a class="layui-btn layui-btn-default layui-btn-xs" lay-event="detail">查看</a>
    {{#  } else { }}
    <a class="layui-btn layui-btn-default layui-btn-xs" lay-event="fill">补单</a>
    {{#  } }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<script type="text/html" id="status">
    {{#  if(d.status == 1){ }}
    <font color="green">已支付</font>
    {{#  } else { }}
    <font color="red">未支付</font>
    {{#  } }}
</script>
<script>
    layui.use('order', layui.factory('order'));
</script>